package com.wxyzz.canteenadmin.shop.employee.service;

import com.github.pagehelper.PageInfo;
import com.wxyzz.canteenadmin.shop.employee.VO.EmployeeVO;
import com.wxyzz.canteenadmin.shop.employee.param.AddEmpParam;
import com.wxyzz.canteenadmin.shop.employee.param.EmployeePageParam;
import com.wxyzz.canteencommon.entity.shop.employee.Employee;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * --- 加油，努力 ---
 *
 * @Author XYP
 * @Date 2024/10/10
 * @Solgne 从想做到能做
 * @Desc
 */
public interface EmployeeService {
    //分页和模糊查询
    PageInfo<EmployeeVO> page (EmployeePageParam employeePageParam);
    //根据id查询
    Employee findById (Integer id);
    //删除
    void deleteById (Integer id);
    //批量删除
    void delBatch (List<Integer> ids);
    //添加
    void add (AddEmpParam addEmpParam);
    //更新
    void update (Employee employee);
    //上传文件
    void importUnit (MultipartFile file);
    //导出文件
    void exportExcel(HttpServletResponse response);
}
